package service;

import domain.User;

import java.util.List;

public interface UserService {
    /**
     * 注册
     * @param user
     * @return
     */
    int registUser(User user);

    /**
     * 登录
     */
    User loginUser(User user);

    User existsUser(Integer id);

    int updateUser(User user);

    List<User> selectAllUsers();

    int deleteUser(Integer id);
}
